]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: Improve conflicting session notification message
authorJoan Torres <joan.torres@suse.com>
Wed, 13 Mar 2024 16:43:20 +0000 (17:43 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 16 Mar 2024 16:33:50 +0000 (16:33 +0000)
This makes it less confusing.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3235>

js/gdm/loginDialog.js

index 42c421ac121257a96c715cc9d3bbe4c12a9a2512..4f51a6f41ae9e70588e173904e471aca1d4b0803 100644 (file)
@@ -1073,13 +1073,13 @@ export const LoginDialog = GObject.registerClass({
         }, this);
     }
 
-    _notifyConflictingSessionDialogClosed(userName) {
+    _notifyConflictingSessionDialogClosed() {
         const source = new MessageTray.getSystemSource();
 
         this._conflictingSessionNotification = new MessageTray.Notification({
             source,
-            title: _('Stop conflicting session dialog closed'),
-            body: _('Try to login again to start a session for user %s.').format(userName),
+            title: _('Login Attempt Timed Out'),
+            body: _('Login took too long, please try again'),
             urgency: MessageTray.Urgency.CRITICAL,
             isTransient: true,
         });
@@ -1112,7 +1112,7 @@ export const LoginDialog = GObject.registerClass({
         }, conflictingSessionDialog);
 
         const closeDialogTimeoutId = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, _CONFLICTING_SESSION_DIALOG_TIMEOUT, () => {
-            this._notifyConflictingSessionDialogClosed(this._user.get_user_name());
+            this._notifyConflictingSessionDialogClosed();
             conflictingSessionDialog.close();
             this._authPrompt.reset();
             return GLib.SOURCE_REMOVE;